﻿<script id="RulesTemplate_Small" type="text/x-jquery-tmpl">
     <div class="content">
        <header>
            <span>RULES</span>
        </header>
        <section>
            <div class="ContentSmall">How points calculation works...</div>
        </section>
    </div>
</script>


<script id="RulesTemplate_Large" type="text/x-jquery-tmpl">
    <div class="content" style="height: 98%; overflow: auto">
    
        <header>
            <span>Rules of points calculation</span>
        </header>
        <section>              
            <p style="margin-bottom: -5px; margin-top: 10px">
                <b>1.</b> Every player has at the beging 100 points.
            </p>
            <p style="margin-bottom: -5px">
                <b>2.</b> Every match can be played on 3 levels: 
                <br /> - 20% of points for win
                <br /> - 10% of points for win
                <br /> - 5% of points for win
            </p>
            <p style="margin-bottom: -5px">
                <b>3.</b> Winners gets a percents of looser points and additional 1 point. In case of a draw, all receives 1 point.
            </p>
            <p style="margin-bottom: -5px">
                <b> Example: </b><br />
                Match is played on level 10% and before match:
                <br />In team #1: 
                <br />- Player #1 has 80 points 
                <br />- Player #2 has 40 points. 
                <br />In team #2: 
                <br />- Player #3 has 50 points, 
                <br />- Player #4 has 20 points. 
                <br />Suppose that Team #2 won match, so after match:
                <br />- Player #1 will have 72 points = 80 - 10% (8 points)
                <br />- Player #2 will have 36 points = 40 - 10% (4 points)
                <br />So Team #2 won 12 (8+4) points from Team #1. Wins points will be equally distributed  between the winning players.
                <br />- Player #3 will have 57 points = 50 + 1/2(12) + 1
                <br />- Player #4 will have 27 points = 20 + 1/2(12) + 1 
            </p>                          
        </section>       
    </div>
</script>
